/*
 * @Description:
 * @version:
 * @Author: sunqian_sr
 * @Date: 2022-12-07 13:52:54
 * @LastEditors: xt
 * @LastEditTime: 2022-12-07 10:52:33
 */
const parentRouter = [
  {
    label: '工作流程',
    path: ''
  }
]
const routes = [
  {
    path: '/workflow/flowEngine',
    name: 'flowEngine',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '流程设计',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/flowEngine/index.vue')
  },
  {
    path: '/workflow/flowLaunch',
    name: 'flowLaunch',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '我发起的',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/flowLaunch/index.vue')
  },
  {
    path: '/workflow/flowTodo',
    name: 'flowTodo',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '待办事宜',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/flowTodo/index.vue')
  },
  {
    path: '/workflow/flowDone',
    name: 'flowDone',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '已办事宜',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/flowDone/index.vue')
  },
  {
    path: '/workflow/flowCirculate',
    name: 'flowCirculate',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '抄送事宜',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/flowCirculate/index.vue')
  },
  {
    path: '/workflow/entrust',
    name: 'entrust',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '流程委托',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/entrust/index.vue')
  },
  {
    path: '/workflow/flowExpression',
    name: 'flowExpression',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '流程表达式',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/flowExpression/index.vue')
  },
  {
    path: '/workflow/flowButton',
    name: 'flowButton',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '流程委托',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/flowButton/index.vue')
  },
  {
    path: '/workflow/dict',
    name: 'FlowDict',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '流程字典',
      keepAlive: false,
      parentTitle: parentRouter
    },
    component: () => import('@package/components/src/workflow/views/dict/dict.vue')
  },
  {
    path: '/workflow/dict/dictValue',
    name: 'WorkFlowDictValue',
    meta: {
      icon: 'icon-renyuanguanli',
      title: '字段值管理',
      keepAlive: false,
      parentTitle: [...parentRouter, { label: '流程字典', path: '/workflow/dict' }]
    },
    component: () => import('@package/components/src/workflow/views/dict/dictValue.vue')
  }
]
export default routes
